assume cs:code,ds:a,es:b,ss:c

a segment
        db 1,2,3,4,5,6,7,8
a ends

b segment
        db 1,2,3,4,5,6,7,8
b ends

c segment
        db 0,0,0,0,0,0,0,0
c ends

code segment
start:mov ax,a
        mov ds,ax
        mov ax,b
        mov es,ax
        mov ax,c
        mov ss,ax

        mov bx,0
        mov bp,0
        mov cx,8

s:      mov al,ds:[bx]
        add al,es:[bx]
        mov ss:[bp],al
        inc bx
        inc bp
        loop s

        mov ax,4c00h
        int 21h
code ends



end start


